From: Eli Zaretskii Date: Mon, 7 Oct 2019 18:22:03 +0000 (+0300) Subject: Fix a crash in TTY sessions caused by recent changes X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~19^2~1617 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=18251fb73941bc2aac5aac8d5e63bfdcfa9d3c8a;p=emacs.git Fix a crash in TTY sessions caused by recent changes * src/xdisp.c (redisplay_internal): Fix crashes in TTY sessions when turning on tab-mode. Reported by Ergus . --- diff --git a/src/xdisp.c b/src/xdisp.c index 192bf010136..29d49d57dfd 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -15680,9 +15680,11 @@ redisplay_internal (void) /* On some platforms (at least MS-Windows), the scroll_run_hook called from scrolling_window called from update_frame could set the frame's - garbaged flag, in which case we need to - redisplay the frame. */ - if (FRAME_GARBAGED_P (f)) + garbaged flag, in which case we need to redisplay + the frame. Don't do that on TTY frames, since we + need to keep the garbaged flag in that case when + the frame has been resized. */ + if (FRAME_WINDOW_P (f) && FRAME_GARBAGED_P (f)) { fset_redisplay (f); f->garbaged = false;